package com.wwl.thread;

public class PrintChar2 extends Thread {
    @Override
    public void run() {
        String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        for (int i = 0; i < 20; i++) {
            int n = (int) (Math.random() * 26);
            System.out.println(str.charAt(n) + " ");
        }
    }
}
